# 读取整个文件
# with open('pi_digits.txt') as file_object:
    # contents = file_object.read()
# print(contents.rstrip())

# 逐行读取
with open('pi_digits.txt') as file_object:
    for line in file_object:
        print(line.rstrip())
